Conditions | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Xdebug from '../extensions/php/xdebug' |
||
34 | enable = async (xdebug: Xdebug): Promise<boolean> => { |
||
35 | if (!(await xdebug.isInstalled())) { |
||
36 | console.log('Extension xdebug is not installed. Installing now...') |
||
37 | await xdebug.install() |
||
38 | } |
||
39 | |||
40 | // TODO: Enable auto start configuration for xdebug. |
||
41 | |||
42 | console.log('Enabling xdebug...') |
||
43 | await xdebug.enable() |
||
44 | |||
45 | return true |
||
46 | } |
||
66 | export default XdebugController |